package crm8000.services

import org.codehaus.groovy.grails.web.util.WebUtils;

import crm8000.Models.BizLog;
import grails.transaction.Transactional

@Transactional
class BizLogService {

	def UserService userService
	
	def getRequest(){
		def webUtils = WebUtils.retrieveGrailsWebRequest()
		webUtils.getCurrentRequest()
	}
	
    def log(String info) {
		new BizLog(userId: userService.loginUserId, ip: this.request.getRemoteAddr(), info: info).save()
    }
}
